<?php
class testdb_model extends Model {

	public $db;

	public function __construct() {
		parent::__construct();
		if (!$this->db) {
			$this->db = $this->load->database("default");
		}
	}

	public function select() {
		return $this->db->get('table_groups')->result_array();
	}
}